#include "WFloat.hpp"
#include <iostream>

int main()
{
    WFloat num1{0}, num2{0};
    int op{1};

    while (true)
    {
        std::cout << "input num1 = ";
        std::cin >> num1;

        std::cout << "\ninput num2 = ";
        std::cin >> num2;

        std::cout << "\nselect operation:\n"
                     "1) +\n"
                     "2) -\n"
                     "3) *\n"
                     "4) /\n\n";
        std::cin >> op;
        std::cout << "\nresult = ";
        switch (op)
        {
        case 1:
            std::cout << num1 + num2 << "\n";
            break;
        case 2:
            std::cout << num1 - num2 << "\n";
            break;
        case 3:
            std::cout << num1 * num2 << "\n";
            break;
        case 4:
            std::cout << num1 / num2 << "\n";
            break;

        default:
            return -1;
        }
    }

    return 0;
}